from base.base import test_01
from selenium.webdriver.common.by import By
from time import sleep


class test_02(test_01):

    shouye=(By.ID,'com.kongfz.app:id/lav_1')

    kuang=(By.XPATH,'/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.FrameLayout/android.widget.FrameLayout[2]/android.widget.RelativeLayout/android.widget.RelativeLayout[1]/android.widget.LinearLayout[1]')

    shurkuang='new UiSelector().resourceId("com.kongfz.app:id/etContent")'

    suos=(By.XPATH,'//android.widget.TextView[@text="搜索"]')


    dy=(By.ID,'com.kongfz.app:id/tvHitLeft')


    dy1=(By.ID,'com.kongfz.app:id/vShadow')




    def suosyewu(self,connt):
        self.loc1(self.shouye).click()
        sleep(2)

        self.loc3(self.kuang).click()
        sleep(2)

        self.loc2(self.shurkuang).send_keys(connt)
        sleep(2)

        self.loc1(self.suos).click()

        sleep(2)





